package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Title  string  `gorm:"type:varchar(30);comment:商品名称"`
	UserId int64   `gorm:"type:int(11);comment:用户id"`
	Price  float64 `gorm:"type:decimal(10,2);commit:商品价格"`
	Stock  int64   `gorm:"type:int(11);comment:商品库存"`
	Image  string  `gorm:"type:varchar(500);comment:商品图片"`
}
